package edu.gatech.mobile.scene.ui.manage;

import java.util.List;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class ViewLabeledImageView extends View{
    private Paint   mBitmapPaint;
	private Bitmap image;
	private List<Bitmap> masks;
	private Canvas  mCanvas;
	
	public ViewLabeledImageView(Context context,Bitmap image, List<Bitmap> images) {
		super(context);
		this.image= image;
		//this.mask = mask;
		mCanvas = new Canvas(this.image);
		mBitmapPaint = new Paint(Paint.DITHER_FLAG);
		this.masks = images;
	}
	  @Override
	    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
	        super.onSizeChanged(w, h, oldw, oldh);
	    }
	
	    @Override
	    protected void onDraw(Canvas canvas) {
	    	canvas.drawBitmap(this.image, 0, 0, mBitmapPaint);
	    	for(Bitmap mask : masks){
	    		canvas.drawBitmap(mask, 0, 0, mBitmapPaint);
	    	}
	    }
}
